#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
int Bei(int a, int b)
{
	if (b > a)
	{
		int temp = b;
		b = a;
		a = temp;
	}
	if (a%b == 0)
	{
		return a;
	}
	else
	{
		int i = a;
		while (i%a != 0 || i%b != 0)
		{
			i += a;
		}
		return i;
	}

}
int main()
{
	int a, b;
	int bei = 0;
	while (scanf("%d%d", &a, &b) != EOF)
	{
		bei = Bei(a, b);
		printf("%d\n", bei);
	}
	return 0;
}